package cn.dgut.jy.soro.repository;

import cn.dgut.jy.soro.entity.Appointment;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AppointmentRepository extends JpaRepository<Appointment, Integer>,
        JpaSpecificationExecutor<Appointment> {
    List<Appointment> findByUserId(Integer userId);
}
